import os
from typing import Any
import pandas as pd
from MyLogger import MyLogger
from MyConfig import MyConfig
import sys
import pandas as pd

cur_path = os.path.dirname(os.path.realpath(__file__))
conf = f"{cur_path}\\consolidation.json"
cfg = MyConfig(conf)
hdict:dict = cfg.get("level2 handlers",None)
# lst=[]
# for key in hdict.keys():
#     lst.append({"key":key, "module":hdict[key], "done":False})
# cfg.set("todo",lst)
# cfg.sync()
lst:list = cfg.get("todo",None)
df = pd.DataFrame(data=lst)
print(df)